enum httpStatus {
    SUCCESS = 200, // 成功
    FAIL = -1, // 失败
    SESSION_EXPIRATION = -100, // 会话过期
}
export default httpStatus;

export interface RequestOptions {
    baseUrl?: string,
    url: string,
    method: string,
    data?: object | string | ArrayBuffer,
    header?: object,
    timeout?: number,
    dataType?: string,
    responseType?: string,
    sslVerify?: boolean,
    withCredentials?: boolean,
    firstIpv4?: boolean,
    success?: Function,
    fail?: Function,
    complete?: Function,
    loading?: boolean,
    loadingText?: string,
    loadingMask?: boolean,
}